<%= error_messages_for 'mission' %>

<!--[form:mission]-->
<p><label for="mission_name">Name</label><br/>
<%= text_field 'mission', 'name'  %></p>

<%= hidden_field 'mission_registration', 'id'%>

<p><label for="mission_registration_character_id">Character</label><br/>
<%= select("mission_registration", "character_id", @mission.member.characters.collect { |type| [ type.name, type.id ] }) %>

<p><label for="mission_mission_type">Type</label><br/>
<%= select("mission", "mission_type_id", MissionType.find_all.collect { |type| [ type.name, type.id ] }) %>

<p><label for="mission_description">Description</label><br/>
<%= text_field 'mission', 'description'  %></p>

<p><label for="mission_start_date">Mission Start Date/Time (Times are Eastern U.S.)</label><br/>
<%= datetime_select 'mission', 'start_date', :minute_step => 10 %></p>

<p><label for="mission_duration_id">Mission Duration</label><br/>
<%= select 'mission', 'duration_id', Duration.find_all.collect { |d| [ d.name, d.id ] }  %></p>

<p><label for="mission_reg_cutoff">Registration Cut-Off (in minutes from start time)</label><br/>
<%= text_field 'mission', 'reg_cutoff'  %></p>

<p><label for="mission_strict_requirements">Strict requirements</label><br/>
<%= select 'mission', 'strict_requirements', [['False','0'],['True','1']]  %></p>

<p><label for="mission_comms_type">Comms</label><br/>
<%= select("mission", "comms_type_id", CommsType.find_all.collect { |type| [ type.name, type.id ] }) %>

<p><label for="mission_plan">Plan</label><br/>
<%= text_area 'mission', 'plan'  %></p>

<p><label for="mission_remarks">Remarks</label><br/>
<%= text_area 'mission', 'remarks'  %></p>

<p><label for="mission_debriefing">Debriefing</label><br/>
<%= text_area 'mission', 'debriefing'  %></p>
<!--[eoform:mission]-->

